<template>
    <el-image :src="imageSrc" ></el-image>
</template>
<script setup>
import {ref,onMounted} from 'vue'
import Api from '@/api/model/workflow.js'
const props = defineProps({
    paramsData: {
        type: Object,
        defalut: {}
    }
})
const imageSrc = ref('')
onMounted(()=>{
    getInit()
})
const getInit = async()=>{
    let param ={
        processInstanceId:props.paramsData.id
    }
    let res = await Api.task.image.post(param)
    imageSrc.value='data:image/png;base64,'+res.data

}
</script>
